package com.sskj.lib.bean;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;

import com.sskj.lib.util.CoinUtil;
import com.sskj.lib.util.CommonUtil;

import java.io.Serializable;

import javax.annotation.Nullable;


@Entity(tableName = "qianbao",primaryKeys = {"qianbao_id"})
public class QianbaoBean implements Serializable {
    @Nullable
    private Integer qianbao_id;
    @ColumnInfo(name = "guzhi_usdt_qianbao")
    private String guzhi_usdt;
    @ColumnInfo(name = "guzhi_cny_qianbao")
    private String guzhi_cny;

    @Nullable
    public Integer getQianbao_id() {
        return qianbao_id;
    }

    public void setQianbao_id(@Nullable Integer qianbao_id) {
        this.qianbao_id = qianbao_id;
    }

    public String getGuzhi_usdt() {
        return CoinUtil.keepUSDT(guzhi_usdt);
    }

    public void setGuzhi_usdt(String guzhi_usdt) {
        this.guzhi_usdt = guzhi_usdt;
    }

    public String getGuzhi_cny() {
        return CommonUtil.dealCNY(guzhi_cny);
    }

    public void setGuzhi_cny(String guzhi_cny) {
        this.guzhi_cny = guzhi_cny;
    }
}

